Seamless engagement and disengagement of transport layer security proxy services

ABSTRACT

Techniques are presented for seamless engagement and disengagement of Transport Layer Security proxy services. A first initial message of a handshaking procedure for a first secure communication session between a first device and a second device is intercepted at a proxy device. The first initial message of the handshaking procedure is saved at the proxy device. A second initial message of a second handshaking procedure for a second secure communication session between the proxy device and the second device is sent from the proxy device to the second device. It is determined from the second handshaking procedure that inspection of the first secure communication session is not to be performed by the proxy device. The first secure communication session is established without examination of the communication traffic by the proxy device.

TECHNICAL FIELD

The present disclosure relates to network environments utilizingTransport Layer Security Proxy Services.

BACKGROUND

Proxy devices equipped to provide Transport Layer Security (TLS) operateby intercepting network traffic flows between clients and servers.Specifically, a TLS proxy serves as a “man-in-the-middle,” establishinga first secure connection between the client and the proxy, and a secondsecure connection between the proxy and the server. With these twosecure connections in place, the TLS proxy receives encryptedcommunications from the client over the first secure connection, anddecrypts the communication for examination at the proxy. If it isdetermined that the traffic should be forwarded to the server, the proxyre-encrypts the traffic according to the second secure connection, andsends the traffic to the server over the second secure connection. Theinverse process is also performed where encrypted traffic is receivedfrom the server over the second secure connection, decrypted at theproxy, and re-encrypted and sent to the client over the first secureconnection.

Due to certain rules, such as privacy laws, decryption of some traffic,such as online banking transactions, might not be permitted. In thesesituations the proxy needs to either enter the transaction after it isdetermined from a direct client-server connection that TLS inspection isallowed, or a TLS connection is initially established which issubsequently broken if it determined that TLS inspection is not allowed.In either instance, old connections at both the client and server arebroken, and new connections are established, a process that is costly atthe client, server and proxy. Moreover, breaking established connectionsmay cause operational problems for some clients and servers that operatewithout awareness of the intervening proxy device.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example computer network in which seamlessengagement and disengagement of TLS proxy services are implemented.

FIG. 2 illustrates an example ladder diagram for seamless disengagementof TLS proxy services.

FIG. 3 illustrates another example ladder diagram for seamlessdisengagement of TLS proxy services.

FIG. 4 illustrates an example ladder diagram for seamless engagement ofTLS proxy services.

FIG. 5 is a flowchart that illustrates an example procedure for seamlessdisengagement of TLS proxy services.

FIG. 6 is a flowchart that illustrates an example procedure for seamlessengagement of TLS proxy services.

FIG. 7 is an example block diagram of a network device configured toperform seamless engagement and disengagement of TLS proxy services.

DESCRIPTION OF EXAMPLE EMBODIMENTS Overview

Techniques are presented herein for seamless engagement anddisengagement of TLS proxy services. A first initial message of ahandshaking procedure for a first secure communication session between afirst device and a second device is intercepted at a proxy device. Thefirst initial message of the first handshaking procedure is saved at theproxy device. A second initial message of a second handshaking procedurefor a second secure communication session between the proxy device andthe second device is sent from the proxy device to the second device. Itis determined from the second handshaking procedure that inspection ofthe first secure communication session is not to be performed by theproxy device. The first secure communication session is establishedwithout examination of the communication traffic by the proxy device.

Example Embodiments

Depicted in FIG. 1 is an example network environment 100 configured forseamless engagement and disengagement of TLS proxy services. Clients 110a-c are connected to proxy 120, and in turn, to server 130 throughnetwork 140. Proxy 120 is configured to seamlessly engage or disengageTLS proxy services without breaking a previously formed connectionbetween any of the clients 110 a-c and server 130 when traffic 150 iscommunicated between any of the clients 110 a-c and server 130. Theproxy 120 is configured to provide seamless TLS proxy engagement anddisengagement of a session, e.g., session 155. Session 155 may be, forexample, network traffic 150 communicated between client 110 c andserver 130 through the use of secure keys. Proxy 120 may engage anddisengage from the establishment of session 155 as shown at 160, and asdescribed in more detail hereinafter in connection with FIGS. 2-7.

With reference now being made to FIG. 2, a ladder diagram 200 isillustrated in which proxy 120 seamlessly disengages from a connectionbetween client 110 and server 130. Message 201 comprises a client hellomessage sent from client 110 to server 130 in order to initiate ahandshaking procedure. The client hello message 201 is intercepted byand stored at proxy 120. Client hello message 201 is not immediatelyforwarded to server 130, and server 130 is not yet aware that client 110is attempting to initiate a secure connection with server 130.

With client hello (ClientHello) message 201 held at proxy 120, proxy 120sends a new client hello message 202 to server 130. Client hello message202 is based on client hello 201 in that it is configured to establish asimilar handshaking procedure, but instead of establishing a connectionbetween client 110 and server 130, the client hello message 202 isconfigured to establish a connection between proxy 120 and server 130.

Upon receiving client hello message 202, server 130 sends server hellomessage 203 to proxy 120. Server 130 also sends message 204 thatincludes a security certificate for server 130. Proxy 120 determinesfrom the certificate contained in message 204 whether or not TLS proxyservices should be applied to communications between client 110 andserver 130. For example, if the Domain Name System (DNS) server name forserver 130 indicated in the certificate is “Bank A,” proxy 120determines that the connection between client 110 and server 130 wouldfall into the online banking information category. Because privacy lawsmay prohibit the decryption of online banking information, proxy 120determines that TLS proxy services are not to be invoked for aconnection established between client 110 and server 130, as shown at205. Accordingly, proxy 120 terminates the proxy-server handshakingprocedure by sending a Transmission Control Protocol (TCP) close message206 and a TCP Setup message 207 which ultimately closes the connectionbetween proxy 120 and server 130.

Upon making the determination that TLS proxy services should not beapplied, the proxy reestablishes the client-server handshake as shown at208. Specifically, client hello message 201, which has been stored atproxy 120 since it was initially received, is forwarded from proxy 120to server 130. Client 110 and server 130 complete their handshakingprocedure through messages 209 without inspection from proxy 120. Uponcompletion of the handshaking procedure, client 110 and server 130 beginsending application data 210 without TLS proxy services. Because message201 was stored at proxy 120 without any indication to client 110 thatproxy 120 was proceeding with its own handshaking, the handshakingprocedure between client 110 and server 130 proceeds seamlessly withoutany interruption from the perspective of client 110. Neither client 110nor server 130 receives any indication or notification that the proxy120 intervened and examined the client hello message 201.

Turning to FIG. 3, a ladder diagram 300 is shown which illustrates anexchange similar to that depicted in FIG. 2, but takes the proxy-serverhandshaking procedure to completion before reinitiating theclient-server handshaking procedure. By fully completing theproxy-server handshaking procedure, additional security can be achieved,as will be explained in detail below.

The exchange of FIG. 3 begins with client hello message 301 which isintercepted and stored at proxy 120. Proxy 120 sends its own clienthello message 302 to server 130, and receives server hello message 303and a message 304 containing a certificate in response. Proxy 120determines from the certificate contained in message 304 whether or notTLS proxy services should be applied to communications between client110 and server 130, as shown at 305, but unlike the ladder diagram ofFIG. 2, the proxy does not immediately terminate the handshakingprocedure. Instead, proxy 120 proceeds with the proxy-server handshakingprocedure all the way to its completion, performing the steps to ensurethat server 130 is in possession of the necessary one or more privatekeys associated with the certificate.

Specifically, after receiving server hello done message 306, proxy 120sends client key exchange message 307 and change cipher spec message308, as well as finished message 309. In response, the server 130 sendschange cipher spec message 310 and finished message 311. These messagesallow proxy 120 to determine whether or not the server 130 is inpossession of the appropriate private keys for the certificate presentedin message 304. This provides additional security to the communicationsession. Without taking the proxy-server handshaking procedure tocompletion, if server 130 wanted to avoid TLS proxy services, it couldpresent proxy 120 with a counterfeit certificate in message 304. Forexample, if the server 130 hosts games which are blocked by TLS proxyservices, server 130 may attempt to circumvent the TLS proxy services byproviding a counterfeit certificate in message 304. Specifically, server130 could present a counterfeit “Bank A” certificate in message 304. Ifproxy 120 immediately removes itself from the process at this point,proxy 120 will no longer be intercepting messages between client 110 andserver 130 after client hello 301 is forwarded to server 130, and thehandshaking procedure is completed through messages 316-318.

On the other hand, if the proxy continues with its handshaking procedurethrough to the completion of the proxy-server handshaking procedure,when proxy 120 and server 130 verify their private keys through messages307-311, proxy 120 will determine that server 130 does not hold theprivate key associated with the valid certificate presented to proxy 120through message 304. Accordingly, the proxy 120 will be able toterminate the proxy-client handshaking procedure, and also send amessage to client 110 terminating the client-server handshakingprocedure.

Alternatively, if proxy 120 and server 130 are able to complete theproxy-server handshaking procedure through message 311, and proxy 120determines that server 130 is in possession of the appropriate privatekeys, as shown at 312, proxy 120 may confidently allow the client-serverhandshaking procedure to proceed without inspection, as shown at 315.

Turning now to FIG. 4, a ladder diagram 400 is provided that illustratesa procedure by which proxy 120 seamlessly engages in TLS proxy services.Client 110 sends client hello message 401 in order to establish a secureconnection between client 110 and server 130. Instead of interceptingclient hello message 401, proxy 120 allows client hello message 401 topass through to server 130. Because client hello message 401 passesthrough to server 130 without any immediate intervention from proxy 120,if it is later determined that decryption of the data is not to beperformed, client 110 and server 130 will be able to complete theirhandshaking procedure without ever receiving any indication of thepresence of proxy 120. In other words, the actions of proxy 120 will becompletely transparent to client 110 and server 130.

Upon receiving client hello message 401, server 130 responds with serverhello message 402 and certificate message 403 to client 110. As theserver hello message 402 and the certificate message 403 are passingthrough proxy 120 on their way to client 110, proxy 120 will examine thecontent of these messages. Based upon the content of the server hellomessage 402 and the certificate message 403, such as the DNS server nameand/or category of server 130, proxy 120 determines whether or not TLSproxy services (proxy inspection/decryption) is to be applied to thecommunication session as shown at 404.

If proxy 120 determines that TLS proxy services are to be applied to thecommunication session between client 110 and server 130, proxy 120 sendsout a new client hello message 405 from proxy 120 to server 130, and anew server hello message 406 from proxy 120 to client 110. Specifically,proxy 120 spoofs client hello message 401 to create client hello message405, using all of the same parameters as client hello message 401 exceptthat proxy 120 will take the place of client 110 in the handshakingprocedure. Similarly, new server hello message 406 is spoofed fromoriginal server hello message 402, except that proxy 120 takes the placeof server 130 in the handshaking procedure.

Upon receiving spoofed client hello message 405, server 130 willcontinue its handshaking procedure under the assumption that theparameters have changed since the time of receipt of original clienthello message 401. Because server 130 interprets the receipt of newclient hello message 405 as a change of parameters of the alreadypending client-server handshaking procedure, server 130 will completethe handshaking procedure with proxy 120 through messages shown atreference numeral 407 without breaking the current connection.

Upon receiving spoofed server hello message 406, client 110 willcontinue its handshaking procedure under the assumption that the serverhello message 406 is the first and only response to client hello message401. Accordingly, client 110 will complete the handshaking procedurewith proxy 120 through the messages shown at reference numeral 408without breaking the current connection, and with the previousintervention of proxy 120 having been completely transparent to client110. With the handshaking procedures completed, application data is sentvia messages 409. Accordingly, messages sent from the client 110 to theserver 130 are intercepted at the proxy 120, decrypted for inspection,and then re-encrypted for transmission to the server. Similarly,messages sent from the server 130 to the client 110 are intercepted bythe proxy 120, decrypted for inspection, and then re-encrypted fortransmission to the client 110.

Alternatively, if proxy 120 determines that TLS proxy services are notto be applied, original server hello message 402 and originalcertificate message 403 will be received by client 110, and thehandshaking procedure between client 110 and server 130 will completewithout intervention from proxy 120.

With reference now to FIG. 5, a flowchart for a process 500 isillustrated for seamlessly disengaging from a handshaking procedure. Instep 501, an initial message of a handshaking procedure is interceptedat a proxy device. The purpose of the handshaking procedure is toestablish a first secure communication session between a first device,such as a client, and a second device, such as a server. The initialmessage of the handshaking procedure may take the form of a client hellomessage according to a TLS handshake.

In step 502, the first initial message of the handshaking procedure issaved at the proxy device.

In step 503, in place of the first initial message, the proxy deviceforwards a second initial message of a second handshaking procedure tothe second device to establish a second secure communication between theproxy device and the second device.

In step 504, it is determined from the second handshaking procedure thatinspection of the first secure communication is not to be performed bythe proxy device. This determination may be made by examining a serverhello message and certificate sent from the second device to the proxyduring the second handshaking procedure.

Finally, in step 505, the first secure communication session isestablished without examination of the communication traffic by theproxy. The first communication session may be established by terminatingthe second handshaking procedure and forwarding the saved first initialmessage once it is determined that inspection of the first securecommunication session is not to be carried out. Alternatively, the proxydevice may wait until after the second handshaking procedure completesbefore establishing the first secure communication session.

With reference to FIG. 6, a flowchart is illustrated of a procedure 600for seamlessly engaging in a handshaking procedure between two devices.At step 601, a connection is opened between a first device and a seconddevice for establishing a secure communication session between the firstdevice and the second device. The connection comprises a first deviceside and a second device. For example, the first device side maycomprise a client port, while the second device side comprises a serverport.

In step 602, handshaking communications are monitored over theconnection at the proxy device. For example, if the connection comprisesa TLS handshaking procedure, the proxy may monitor the client hellomessage, the server hello message, the certificate, the server hellodone message, the client key exchange, the change cipher spec message,and other messages.

In step 603, it is determined from the handshaking communications thatinspection of the secure communication session by the proxy is needed.For example, depending on the contents of the certificate, such as theDNS server name or category, it may be determined that inspection of thesecure traffic to be sent across the secure communication session wouldbe appropriate or necessary.

In step 604, in response to the determination made at step 603, thefirst device side of the connection may be modified to form a secondsecure communication session between the first device and the proxydevice. For example, the proxy device may send a new server hellomessage to the first device in order to establish a proxy-client secureconnection. From the perspective of the first device, the second secureconnection may appear to be the completion of the first securecommunication session that the first device attempted to establish instep 601. For example, the first device may view the new server hellomessage sent from the proxy device as the first and only response to aclient hello message sent by the first device. In other words, the proxydevice will reuse the first device side of the first securecommunication session to form a first device-proxy communicationsession.

Finally, in step 605, in response to the determination made at step 603,the second device side is modified to form a third secure communicationsession between the proxy and the second device. For example, a newclient hello message may be sent from the proxy to the second device inorder to establish a proxy-server secure connection. Accordingly, thesecond device may view the third secure communication session as theestablishment of first secure communication session, but establishedwith slightly modified parameters. For example, if the proxy devicesends a new client hello message to the second device in order to modifythe second device side, the second device will view this as amodification of the first secure communication session, and not a newsession. In other words, the proxy device will reuse the second deviceside of the first secure communication session to form a proxy-seconddevice communication session.

Accordingly, when traffic is sent from the first device to the seconddevice via the second secure communication session, the traffic will beintercepted and decrypted at the proxy device. After inspection at theproxy device, the traffic will be re-encrypted and sent to the seconddevice via the third secure communication session. Similarly, whentraffic is sent from the second device to the first device via the thirdsecure communication session, the traffic will be intercepted anddecrypted at the proxy device. After inspection at the proxy device, thetraffic will be re-encrypted and sent to the first device via the secondsecure communication session.

With reference to FIG. 7, an example block diagram is shown of a networkdevice, e.g., a proxy device 120, configured to perform the techniquesdescribed herein in connection with FIGS. 1-6. The proxy device 120comprises network interface ports 710, processor(s) 720, bus 730, andmemory 740. For simplicity, the network interface ports 710 may bereferred to collectively as a network interface unit. The memory 740comprises software instructions for operating system 741 and firewallservices 742 and TLS proxy services logic 750. The TLS proxy serviceslogic 750 may be includes as part of the software for the firewallservices 742.

Memory 740 may comprise read only memory (ROM), random access memory(RAM), magnetic disk storage media devices, optical storage mediadevices, flash memory devices, electrical, optical, or otherphysical/tangible (e.g., non-transitory) memory storage devices. Theprocessor 720 is, for example, a microprocessor or microcontroller thatexecutes instructions for the proxy device logic. Thus, in general, thememory 740 may comprise one or more tangible (non-transitory) computerreadable storage media (e.g., a memory device) encoded with softwarecomprising computer executable instructions and when the software isexecuted (by the processor 720), and in particular firewall servicessoftware 742 and TLS proxy services logic 750, it is operable to performthe operations described herein in connection with FIGS. 1-6.

In summary, techniques are presented herein for seamless engagement anddisengagement of TLS proxy services. Specifically, these techniquesallow a proxy device to gracefully exit from a handshaking procedure,and allow the client and server to directly establish a secureconnection. The connection re-establishment is completely isolated onthe server side, and does not rely on the client implementing TCPconnection reestablishment procedures. These techniques further providefor selective engagement of TLS proxy services without requiring theproxy to insert itself into the initial handshaking procedure. Ifdecryption is deemed unnecessary, the original entities can seamlesslycontinue the connection with no firewall involvement.

The methods and systems described herein may provide significantperformance advantages because TLS proxy services need not be engagedfor all communication sessions, especially communication sessions thatdo not require decryption. In addition to lower computationalcomplexity, the methods and systems provided herein do not require anyadditional connections to be established by the proxy and/or the server.Furthermore, according to some implementations of the techniquesdescribed herein, the original connection is fully preserved down totransport port values. Additionally, the methods and techniques hereinmay prevent errors that can occur when a proxy closes a connectionbetween a client and a server. For example, the client or server mayerroneously interpret the closing of the connection as an indicationthat the device at the other end of the connection is no longeravailable. Because the methods and systems herein provide seamlessengagement and disengagement, no connection is closed, and therefore,there can be no misinterpretation of the reason for a closed connection.

The above description is intended by way of example only.

What is claimed is:
 1. A method of establishing a connection across anetwork, comprising: intercepting at a proxy device a first initialmessage of a first handshaking procedure for a first securecommunication session between a first device and a second device; savingthe initial message of the first handshaking procedure at the proxydevice; sending a second initial message of a second handshakingprocedure from the proxy device to the second device for a second securecommunication session between the proxy device and the second device;determining, according to the second handshaking procedure, thatinspection of the first secure communication session is not to beperformed by the proxy device; forwarding the first initial message ofthe first handshaking procedure to the second device in response todetermining that inspection of the first secure communication session isnot to be performed by proxy device; and establishing the first securecommunication session without examination of communication traffic bythe proxy device.
 2. The method of claim 1, wherein establishing thefirst communication session comprises: completing the first hand shakingprocedure between the first device and second device without inspectionof messages by the proxy device.
 3. The method of claim 1, whereindetermining that inspection of the first secure communication session isnot to be performed by the proxy device comprises: examining acertificate contained in a message from the second device.
 4. The methodof claim 3, wherein determining that inspection of the first securecommunication session is not to be performed by the proxy device furthercomprises: allowing the second handshaking procedure to complete toensure the second device is in possession of one or more keys associatedwith the certificate.
 5. The method of claim 1, further comprising:closing the second secure communication session prior to establishingthe first secure communication session.
 6. A method of establishing aconnection across a network, comprising: opening a connection between afirst device and a second device for initiating a first securecommunication session, the connection comprising a first device side anda second device side; monitoring handshaking communications over theconnection at a proxy device, wherein the monitoring comprisesmonitoring a first initial message of the handshaking procedure sentfrom the first device to the second device and monitoring a secondinitial message of the handshaking procedure sent from the second deviceto the first device; determining from the handshaking communicationsthat inspection of the first secure communication session by the proxydevice is to be performed; modifying the first device side to form asecond secure communication session between the first device and theproxy device by sending a third initial message over the connection fromthe proxy device to the first device; and modifying the second deviceside to form a third secure communication session between the proxydevice and the second device by sending a fourth initial message fromthe proxy device to the second device.
 7. The method of claim 6, whereinmodifying the first device side comprises sending a server hello messageto the first device from the proxy device; and modifying the seconddevice side comprises sending a client hello message to the seconddevice from the proxy device.
 8. The method of claim 7, whereinmodifying the first device side further comprises completing ahandshaking procedure between the first device and the proxy device; andmodifying the second device side comprises completing a handshakingprocedure between the proxy device and the second device.
 9. The methodof claim 6, further comprising: receiving traffic from the first devicevia the second secure communication session; decrypting and inspectingthe traffic at the proxy device; and sending the traffic to the seconddevice through the third secure communication session.
 10. The method ofclaim 6, further comprising: receiving traffic from the second devicevia the third secure communication session; decrypting and inspectingthe traffic at the proxy device; and sending the traffic to the firstdevice through the second secure communication session.
 11. The methodof claim 6, wherein determining from the handshaking communications thatinspection of the first secure communication session by the proxy deviceis to be performed comprises examining a certificate sent from thesecond device to the first device.
 12. An apparatus comprising: anetwork interface unit configured to enable communications over anetwork; a memory; and a processor coupled to the memory and the networkinterface unit, and configured to: intercept a first initial message ofa first handshaking procedure for a first secure communication sessionbetween a first device and a second device; save the initial message ofthe first handshaking procedure; send a second initial message of asecond handshaking procedure to the second device for a second securecommunication session with the second device; determine, according tothe second handshaking procedure, that inspection of the first securecommunication session is not to be performed; forward the first initialmessage of the first handshaking procedure to the second device inresponse to determining that inspection of the first securecommunication session is not to be performed by proxy device; and closethe second secure communication session.
 13. The apparatus of claim 12,wherein the processor is further configured complete the first handshaking procedure between the first device and second device withoutinspecting the handshaking messages.
 14. The apparatus of claim 12,wherein the processor is further configured to: receive a certificatefrom the second device; and examine the certificate to determine thatinspection of the first secure communication session is not to beperformed.
 15. An apparatus comprising: a network interface unitconfigured to enable communications over a network; a memory; and aprocessor coupled to the memory and the network interface unit, andconfigured to: monitor handshaking communications over a connectionbetween a first device and a second device for initiating a first securecommunication session by monitoring a first initial message of thehandshaking procedure sent from the first device to the second deviceand monitoring a second initial message of the handshaking proceduresent from the second device to the first device; determine from thehandshaking communications that inspection of the first securecommunication session is to be performed; modify a first device side ofthe connection to form a second secure communication session with thefirst device by sending a third initial message over the connection fromthe proxy device to the first device; and modify a second device side ofthe connection to form a third secure communication session with thesecond device by sending a fourth initial message from the proxy deviceto the second device.
 16. The apparatus of claim 15, wherein theprocessor is further configured to: send the third initial message bysending a server hello message to the first device to modify the firstdevice side of the connection; and send the fourth initial message bysending a client hello message to the second device to modify the seconddevice side of the connection.
 17. The apparatus of claim 15, whereinthe processor is further configured to examine a certificate sent fromthe second device to determine from the handshaking communications thatinspection of the first secure communication session is to be performed.18. A non-transitory computer readable tangible storage media encodedwith instructions that, when executed by a processor, cause theprocessor to: intercept a first initial message of a first handshakingprocedure for a first secure communication session between a firstdevice and a second device; save the initial message of the firsthandshaking procedure; send a second initial message of a secondhandshaking procedure to the second device for a second securecommunication session with the second device; determine that inspectionof the first secure communication is not to be performed; forward thefirst initial message of the first handshaking procedure to the seconddevice in response to determining that inspection of the first securecommunication session is not to be performed by proxy device; and closethe second secure communication session.
 19. The computer readabletangible storage media of claim 18, wherein the instructions furthercause the processor to complete the first hand shaking procedure betweenthe first device and second device without inspecting the handshakingmessages.
 20. The computer readable tangible storage media of claim 18,wherein the instructions further cause the processor to: receive acertificate from the second device; and examine the certificate todetermine that inspection of the first secure communication session isnot to be performed.
 21. A non-transitory computer readable tangiblestorage media encoded with instructions that, when executed by aprocessor, cause the processor to: monitor handshaking communicationsover a connection between a first device and a second device forinitiating a first secure communication session by monitoring a firstinitial message of the handshaking procedure sent from the first deviceto the second device and monitoring a second initial message of thehandshaking procedure sent from the second device to the first device;determine from the handshaking communications that inspection of thefirst secure communication session is to be performed; modify a firstdevice side of the connection to form a second secure communicationsession with the first device by sending a third initial message overthe connection from the proxy device to the first device; modify asecond device side of the connection to form a third securecommunication session with the second device by sending a fourth initialmessage from the proxy device to the second device.
 22. The computerreadable tangible storage media of claim 21, wherein the instructionsfurther cause the processor to: send the third initial message bysending a server hello message to the first device to modify the firstdevice side of the connection; and send the fourth initial message bysending a client hello message to the second device to modify the seconddevice side of the connection.
 23. The computer readable tangiblestorage media of claim 21, wherein the instructions further cause theprocessor to examine a certificate sent from the second device todetermine from the handshaking communications that inspection of thefirst secure communication session is to be performed.